
import request from '@/utils/request'
import api from './config'
const host = api.apiHost

// 订单列表
export function getOrderList(params) {
  return request({
    url: host + '/order/list',
    method: 'get',
    params
  })
}

// 新增订单
export function saveOrder(data) {
  return request({
    url: host + '/order/save',
    method: 'post',
    data
  })
}

// 修改订单
export function updateOrder(data) {
  return request({
    url: host + '/order/update',
    method: 'post',
    data
  })
}

// 获取订单详情
export function getOrder(params) {
  return request({
    url: host + '/order/detail',
    method: 'get',
    params
  })
}

// 删除订单
export function deleteOrder(data) {
  return request({
    url: host + '/order/delete',
    method: 'post',
    data
  })
}

// /customer​/dropDown
export function getOrderSelect(params) {
  return request({
    url: host + '/order/dropDown',
    method: 'get',
    params
  })
}
export function getDetailList(params) {
  return request({
    url: host + '/order/detailList',
    method: 'get',
    params
  })
}
